/* 文章详情页面样式 */

.post-detail {
  max-width: 1000px;
  margin: 40px auto 0 auto;
  padding: 0 20px;
}

.post-container {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.post-header {
  position: relative;
  color: white;
}

.post-header img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.post-header h1 {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  margin: 0;
  font-size: 2.5rem;
  font-weight: 700;
}

.post-meta {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
  opacity: 0.9;
}

.post-content {
  padding: 40px;
  line-height: 1.8;
  font-size: 1.1rem;
}

.comments-section {
  padding: 40px;
  border-top: 1px solid #e9ecef;
}

.comments-section h3 {
  margin-bottom: 20px;
  color: #333;
}

.comment-form {
  margin-bottom: 30px;
}

.comment-form textarea {
  width: 100%;
  padding: 16px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-size: 16px;
  resize: vertical;
  min-height: 100px;
  margin-bottom: 12px;
}

.comment-form button {
  background: #667eea;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

.comment-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.comment {
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.comment-author {
  font-weight: 600;
  color: #667eea;
}

.comment-date {
  color: #6c757d;
}

.comment-content {
  line-height: 1.6;
  color: #333;
}

.error {
  text-align: center;
  padding: 60px 20px;
}

.error h2 {
  color: #333;
  margin-bottom: 1rem;
}

.error p {
  color: #6c757d;
  margin-bottom: 2rem;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  background: #667eea;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
}

.btn:hover {
  background: #5a6fd8;
} 